{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/common" /}
<!--头部搜索开始-->
<div class="layui-collapse" lay-accordion="">
	<div class="layui-colla-item">
		<h2 class="layui-colla-title">搜索</h2>
		<div class="layui-colla-content layui-show">
			<form class="layui-form" action="{:url('prop')}" method="post">
				<div class="layui-form">
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input class="layui-input" name="id" value="{$pageMaps.id|default=''}" placeholder="ID">
						</div>
					</div>
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input class="layui-input" name="uid" value="{$pageMaps.uid|default=''}" placeholder="UID">
						</div>
					</div>
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input class="layui-input" name="djid" value="{$pageMaps.djid|default=''}" placeholder="DJID">
						</div>
					</div>
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input class="layui-input" name="name" value="{$pageMaps.name|default=''}" placeholder="名称">
						</div>
					</div>
					
					<div class="layui-inline">
						<button lay-submit class="layui-btn" lay-filter="search"><i class="layui-icon">&#xe615;</i>查找</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<!--头部搜索结束-->
<div class="layui-form">
    <table class="layui-table" lay-size="sm">
        <thead>
        <tr>
            <th width="80">ID</th>
			<th>售价</th>
			<th>名称</th>
			<th>详情</th>
			<th>数量</th>
			<th>归属</th>
            <th width="120">操作</th>
        </tr>
        </thead>
        <tbody>
		{if(count($list)<1)}
            <tr>
                <td colspan="8" align="center">暂无相关数据</td>
            </tr>
            {else /}
			{volist name='list' id='vo' key='k'}
			<tr>
				<td>{$vo.payid}</td>
				<td>{$vo.pay}</td>
				<td>[djid:{$vo.djid}] {$vo.djname}</td>
				<td>{$vo.djinfo}</td>
				<td>{$vo.djcount}</td>
				<td>[uid:{$vo.uid}]{$vo.uname}</td>
				<td>
					<a class="layui-btn layui-btn-xs layui-btn-danger ajax-del" data-url='{:url("delProp")}' data-field='id' data-value='{$vo.payid}'>
						<i class="layui-icon">&#xe640;</i>删除
					</a>
				</td>
			</tr>
			{/volist}
		{/if}
        </tbody>
    </table>
</div>
<div class="text-right">
    <div class="layui-box layui-laypage layui-laypage-molv" id="layui-laypage">
		{$_page|raw}
    </div>
	<div class='page-count'>总数量:{$total}条</div>
</div>
</body>
{/block}
{block name="script"}
<script>
layui.use(['jquery','laydate','form','layajax','layer'], function(){
	var $ = layui.jquery
		,form = layui.form
		,laydate = layui.laydate
		,layer = layui.layer
		,layajax = layui.layajax;

	form.render();
});
</script>
{/block}